package com.ifeedme.rocketremote
{
	/** FrontEndValidationObj : Just a data strucure for validation
	 *  provides an ok Boolean, if true then no error
	 *  and a message, useful to describe any error.
	 * Author : Jim Hayes (www.ifeedme.com) may 2007
	 */
	
	public class FrontEndValidationObj	
	{
		private var _message:String;
		private var _ok:Boolean;
		
		function FrontEndValidationObj(ok:Boolean=true,msg:String="")
		{
			// I'm an optimist :)
			_ok = ok;
			_message = msg;			
		}
		
		public function get ok():Boolean
		{
			return _ok;
		}
		
		public function set ok(ok:Boolean):void
		{
			_ok = ok;
		}
		
		public function get message():String
		{
			return _message;
		}
		
		public function set message(msg:String):void
		{
			_message = msg;
		}
		
	}
}